import java.util.Scanner;

public class test_4_11 {
    public static int sum(int a, int b){
        return a + b;
    }
    public static double sum(double c, double d,double e){
        return c + d + e;
    }
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.print("请输入两个整数：");
        int a = input.nextInt();
        int b = input.nextInt();
        System.out.print("请输入三个小数：");
        double c = input.nextDouble();
        double d = input.nextDouble();
        double e = input.nextDouble();
        System.out.println("a和b的最大值为：" + max(a, b));
        System.out.print("c和d和e的最大值为：" + max(c, d, e));
    }
    public static void main4(String[] args) {
        Scanner input = new Scanner(System.in);
        System.out.println("请输入N的值:");
        int n = input.nextInt();
        int k = 1;
        for (int i = 1; i <= n; i++){
            k *= i;
        }
        System.out.println(k);
    }
    public static int max(int a,int b){
        return Math.max(a, b);
    }
    public static double max(double a,double b,double c){
        double d = Math.max(a, b);
        return Math.max(d, c);
    }
    public static void main3(String[] args) {
        int a = 4;
        int b = 8;
        int c = 7;
        System.out.println(max(a, b));
        System.out.println(max(a, b, c));
    }
    public static void main2(String[] args) {
        Scanner input = new Scanner(System.in);
        while(input.hasNextInt()){
            int n = input.nextInt();
            for(int i = 1; i <= n; i++){
                int k = n + 1 - i;
                for (int j = 1; j <= n; j++){
                    if (j == i || j == k){
                        System.out.print("*");
                    }else{
                        System.out.print(" ");
                    }
                }
                System.out.print("\n");
            }
        }
    }
    public static void main1(String[] args) {
        double a = 1;
        double i = 1;
        double num = 0;
        while (i <= 100){
            num += a / i;
            i++;
            a = -a;
        }
        System.out.println("num = " + num);
    }
}
